<?php
/*
 */

m2import('phpinchains/tags/h/inputHandler.php');

class widget_datepickerHandler extends h_inputHandler
{

    function startElement (& $sender, $attrs)
    {
        $this->tagName = 'div';
        $attrs['dojoType'] = "'DatepickerDropdown'";
        $attrs['id'] = "'dp_'.".$attrs['name'];
        $this->containerTag = true;
        parent::startElement($sender, $attrs);
    }

    function endElement (& $sender)
    {
        if ($this->containerTag)
            $sender->appendCode("\$out->write('</".$this->tagName.">');\n");
    }
}

?>